{% include 'typescript.header.j2' %}

import { ModuleRouteConfig } from '@/router/route-types'
import { autoRouteRegister } from '@/router/route-register'

// {{ table.common.label }} 模块路由配置
const routeConfig: ModuleRouteConfig = {
  routes: [
    {
      path: '/{{ table.mark.business_name }}',
      name: '{{ table.derived.naming.class_name }}Menu',
      component: () => import('./List.vue'),
      meta: {
        title: '{{ table.common.label }}管理',
        icon: 'user-outlined',
        keepAlive: false,
      },
    }
  ],
  parentRoute: {
    path: '/autoTest',
    name: 'AutoTestMenu',
    title: '自动注册测试菜单',
    icon: 'folder-outlined'
  }
}

// 注册路由
autoRouteRegister.registerRoute(routeConfig)

// 导出配置供其他地方使用
export default routeConfig